package com.pq.service.impl;

import com.pq.dao.order.SiteDao;
import com.pq.pojo.order.Site;
import com.pq.service.order.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SiteServiceImpl implements SiteService {

    @Autowired
    private SiteDao siteDao;

    @Override
    public Site findUserSiteBySiteId(Integer siteId) {
        return siteDao.findUserSiteBySiteId(siteId);
    }

    @Override
    public Site findUserSiteByUserId(Integer userId, Integer siteType) {
        return siteDao.findUserSiteByUserId(userId, siteType);
    }
}
